package com.wanmait.gohome.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.gohome.mapper.ConfigMapper;
import com.wanmait.gohome.pojo.Config;
import com.wanmait.gohome.service.ConfigService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ConfigServiceImpl implements ConfigService {
    @Resource
    private ConfigMapper configMapper;
    @Override
    public void insert(Config object) {

    }

    @Override
    public void update(Integer id) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public List<Config> findAll() //查寻信用积分表评分信息
    {
        return null;
    }

    @Override
    public Config findById(Integer id) {
        return configMapper.selectByPrimaryKey(id);
    }

    @Override
    public PageInfo<Config> findPage() {
        return null;
    }

    @Override
    public List<Config> findAll(Config object) {
        return null;
    }

    @Override
    public PageInfo<Config> findPage(Config object) {
        return null;
    }

    /**
     *
     * @param name  配置表 查询
     * @return
     */
    @Override
    public Config findByConfigKey(String name) {
        return configMapper.findByConfigKey(name);
    }
}
